Ext.define('XS.view.staff.Edit',{
	extend:'Ext.window.Window',
	alias:'widget.staffedit',
	
	title:'Edit staff',
	layout:'fit',
	autoShow: true,
	bodyPadding:5,
	initComponent:function(){
		this.items=[{
			xtype:'form',
			layout:'anchor',
			defaults: {
		        anchor: '100%'
		    },
			items:[{
				xtype:'textfield',
				name:'name',
				fieldLabel:'Name'
			},
			{
				xtype:'textfield',
				name:'email',
				fieldLabel:'e-Mail'
			}]
		}];
		
		this.buttons = [{
			text:'Save',
			action:'save'
		},{
			text:'Cancel',
			scope:this,
			handler:this.close
		}];
		
		this.callParent(arguments);
	}
});